// JavaScript Document
define(function (require, exports, module) {
	var Page=require("Page");
	CurrentPage=function(){
	}
	CurrentPage.prototype=new Page();
	CurrentPage.prototype.init=function(){
		this.baseInit();
		
		
		var uploader=new Uploader("#uploader");
		uploader.init();
		window.uploader=uploader;
        var fileList='';
		var source=$("[name='source']").val();
		if(source.substr(0,1)!="["){
			source="["+source+"]"
		}
		try{
		    fileList=eval(source);
            for(var i=0;i<fileList.length;i++){
                uploader.append(fileList[i]);
            }
        }catch(e){
		    console.log('没有正确填充参数')
        }
		//console.log(fileList);

		$("#text").html("附件格式为"+$("input[name=ext]").val()+"，单个附件大小不超过"+$("input[name=fileSizeMbLimit]").val()+"M");

	};
	var page=new CurrentPage();
	$(document).ready(function(){
			page.init();
		}
	)
});